<?php
$this->pageTitle = Yii::t('view', 'Perusahaan');
$this->breadcrumbs=array(
	Yii::t('view', 'Perusahaan') => array($this->defaultAction),
	Yii::t('view', $model->nama_perusahaan) => array('perusahaan/read/'.$model->id),
        Yii::t('view', 'Data Perusahaan')
);
$namaPerusahaan = (!empty($model->nama_perusahaan)) ? $model->nama_perusahaan : '';
?>
<div class="container">
    <div class="col-md-12">
        <div class="media">
            <a class="pull-left" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>$cat))?>">
                <img class="media-object" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/<?php echo $cat.'.png'; ?>" height="100" alt="">
            </a>
            <div class="media-body">
                <h2 class="media-heading">
                    <?php echo $namaPerusahaan; ?><h4>(Data Perusahaan)</h4>
                </h2>
                <?php if($cat=='administrasi'): ?>
                <div class="col-md-12 row">
                    <div class="btn-group btn-group-sm">
                        <a class="btn btn-default" href="#">Akta&nbsp;<span class="caret"></span></a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/npwp/view', array('id'=>$model->id));?>">NPWP</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/tdp/view', array('id'=>$model->id))?>">TDP</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/domisili/view', array('id'=>$model->id));?>">Domisili</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/kesanggupank3/view', array('id'=>$model->id));?>">K3</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/kesanggupantaatperuundangan/view', array('id'=>$model->id));?>">Kesanggupan Perundangan</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/persetujuanpemda/view', array('id'=>$model->id));?>">Izin Prinsip</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/kesediaandiinspeksi/view', array('id'=>$model->id));?>">Kesanggupan Inspeksi</a>
                        <a class="btn btn-default" href="<?php echo Yii::app()->createUrl('/kesanggupanpenugasan/view', array('id'=>$model->id));?>">Kesanggupan Penugasan</a>
                    </div>
                </div>
                <?php endif;?>
            </div>
        <div class="col-md-13 view-list">     
            <div class="panel panel-default">
              <div class="panel-heading">
                <h3 class="panel-title">Data Perusahaan</h3>
              </div>
              <div class="panel-body">
                <?php
                $this->widget('booster.widgets.TbDetailView',array(
                    'data'=>$model,
                    'type' => 'condensed',
                    'attributes'=>$this->getViewList($model),
                )); ?>
                <div class="btn-group col-md-4 col-md-offset-3">
                    <a class="btn btn-primary" href="<?php echo Yii::app()->createUrl('/perusahaan/update', array('id'=>$model->id));?>">Edit</a>
                </div>
              </div>
            </div>
        </div>
        <div class="other-kategori">
            <div class="form-inline pull-right">
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'teknis'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/teknis.png">
                </a>
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'perijinan'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/perijinan.png">
                </a>
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'surat-terkait'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/surat-terkait.png">
                </a>
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'evaluasi'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/evaluasi.png">
                </a>
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'pelaporan'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/pelaporan.png">
                </a>
                <a class="img" href="<?php echo Yii::app()->createUrl('/perusahaan/detail', array('id'=>$model->id, 'cat'=>'lain-lain'))?>">
                    <img class="img-responsive" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/lain-lain.png">
                </a>
            </div>
        </div>

    </div>
</div>
</div>